import request from '@/utils/request'

// 查询服务单列表
export function listServiceform(query) {
  return request({
    url: '/system/serviceform/list',
    method: 'get',
    params: query
  })
}

// 查询服务单详细
export function getServiceform(srvSfcode) {
  return request({
    url: '/system/serviceform/' + srvSfcode,
    method: 'get'
  })
}

// 新增服务单
export function addServiceform(data) {
  return request({
    url: '/system/serviceform',
    method: 'post',
    data: data
  })
}

// 修改服务单
export function updateServiceform(data) {
  return request({
    url: '/system/serviceform',
    method: 'put',
    data: data
  })
}

// 删除服务单
export function delServiceform(srvSfcode) {
  return request({
    url: '/system/serviceform/' + srvSfcode,
    method: 'delete'
  })
}
